<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="app" uri="/application" %>
<%@ taglib  prefix="s"  uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="/css/css.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scripts/dtreeAuth.js"></script>
<style type="text/css">
 .wb_error {
    background: url("../images/login/labelerror.png") no-repeat scroll 0 center #FFFCCC;
    border: 1px solid #ff6666;
    color: red;
    font-size: 12px;
    height: 22px;
    line-height: 22px;
    padding-left: 20px;
    width:260px;
}
</style>

</head>
<body>
<div id="all_main">
  <div class="head_main">
    <div class="main_nav">客户管理->添加|编辑客户资料</div>
    <div class="main_soso">
    	
    </div>
    <div class="main_title">
      <table border="0" cellpadding="0" cellspacing="0" width="100%">
        <tr>
          <th width="100%" style="border-left:none;text-align: left;font-weight: normal;"><span style="color:#229BC1;font-weight: bold;">客户基本信息</span></th>
        </tr>
      </table>
    </div>
  </div>
  <div class="content_main">
    <form action="/admin/su_custom.shtml" name="form01">
    <input name="id" value="${c.id}"  type="hidden"/>
    <table border="0" cellpadding="0" cellspacing="0" width="100%" id="background_hegh01">
      <tr>
        <td width="15%" style="border-left:none" align="right">客户名称：</td>
        <td width=""><input name="c.comName" type="text" value="${c.comName}" class="inputwidth01" id="c.comName" maxlength="30" /> <span style="color:red;">*</span></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">联系人：</td>
        <td width=""><input name="c.callUser" type="text" value="${c.callUser}" class="inputwidth01" id="c.callUser" maxlength="30" /> <span style="color:red;">*</span></td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">联系电话：</td>
        <td width="">
          <input name="c.mobile" type="text" value="${c.mobile}" class="inputwidth01" id="c.mobile" maxlength="30" />  <span style="color:red;">*</span>
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">发票抬头：</td>
        <td width="">
          <input name="c.tax" type="text" value="${c.tax}" class="inputwidth01" id="c.tax" style="width:280px;" maxlength="64" />
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">结算方式：</td>
        <td width="">
                        月结:<input name="c.balanceMode" type="radio" value="1" id="" checked="checked" />
                       双周结:<input name="c.balanceMode" type="radio" value="2" id=""  />
        </td>
      </tr>
      <tr>
        <td width="15%" style="border-left:none" align="right">其他联系方式：</td>
        <td width="">
          <input name="c.comDesc" type="text" value="${c.comDesc}" class="inputwidth01" style="width:420px;" id="c.comDesc" maxlength="128" />
        </td>
      </tr>
    </table>
    </form>
  </div>
   
  <div class="lapel" style="background:#FFFFFF;"><span><input name="" type="button" class="input01" value="提交" onclick="validate.submit();"/></span>
  <s:if test="hasFieldErrors()">
      <span style="color:#ff0000;"><s:fielderror><s:param>fromError</s:param></s:fielderror></span>
   </s:if>
  </div>
</div>
</body>
</html>
<script type="text/javascript" src="/scripts/calendar.js"></script>
<script type="text/javascript" src="/scripts/util.js"></script>
<script type="text/javascript" src="/scripts/form_validate.js"></script>
<script type="text/javascript">
validate.addvalidte(document.form01,{
        rules:{
           "c.comName":{checkNull:true},
           "c.callUser":{checkNull:true},
           "c.mobile":{checkNull:true}
           },
	    message:{}
	    });
</script>
